function BeEfficientExt() {
    this.setEnabled(true);
}

BeEfficientExt.prototype.setEnabled = function(newValue) {
    this.enabled = newValue;
    document.getElementById("beefficient-button").checked = newValue;
};

BeEfficientExt.prototype.toggleEnabled = function() {
    this.setEnabled(!this.enabled);
    alert("New preference value is " + this.enabled);
};

this.editor.beefficient = new BeEfficientExt();
